home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / Makefile < prev    next >
Encoding:
Makefile  |  1993-04-15  |  3.0 KB  |  100 lines

  1. #********************************************************************
  2. # lindner
  3. # 3.5
  4. # 1993/04/15 22:00:52
  5. # /home/mudhoney/GopherSrc/CVS/gopher+/Makefile,v
  6. # Exp
  7. #
  8. # Paul Lindner, University of Minnesota CIS.
  9. #
  10. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  11. # see the file "Copyright" in the distribution for conditions of use.
  12. #********************************************************************
  13. # MODULE: Makefile
  14. # Makefile for entire gopher distribution.
  15. #*********************************************************************
  16. # Revision History:
  17. # Makefile,v
  18. # Revision 3.5  1993/04/15  22:00:52  lindner
  19. # Move to looking for ui for WAIS stuff
  20. #
  21. # Revision 3.4  1993/03/18  23:11:15  lindner
  22. # 1.2b3 release
  23. #
  24. # Revision 3.3  1993/02/19  21:41:58  lindner
  25. # Fix to automatically copy Makefile.config.dist when making a distribution.
  26. #
  27. # Revision 3.2  1993/02/19  21:24:24  lindner
  28. # Mods for CVS
  29. #
  30. # Revision 3.1.1.1  1993/02/11  18:02:49  lindner
  31. # Gopher+1.2beta release
  32. #
  33. # Revision 1.3  1992/12/29  23:30:22  lindner
  34. # Removed all references to fanout and mindexd, it's in gopherd now..
  35. #
  36. # Revision 1.2  1992/12/11  19:32:00  lindner
  37. # make tar now uses gnu tar, ignores RCS directorys and symbolic links
  38. #
  39. # Revision 1.1  1992/12/11  19:01:43  lindner
  40. # Gopher1.1 Release
  41. #
  42. #********************************************************************/
  43.  
  44.  
  45. include Makefile.config
  46.  
  47. all: objects server client
  48. server: gopherd/gopherd
  49. client: gopher/gopher
  50. objects: object/libgopher.a
  51.  
  52. gopherd/gopherd: objects
  53.     @echo "Making server"
  54.     @if [ -f /sdmach -a -d ./ui ]; then \
  55.         (echo "Making server with NeXT and WAIS searching";\
  56.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH -DWAISSEARCH" nextwais);\
  57.     elif [ -f /sdmach ]; then \
  58.         (echo "Making server with NeXT searching";\
  59.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH" next); \
  60.     elif [ -d ./ui ]; then \
  61.         (echo "Making server with WAIS searching";\
  62.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DWAISSEARCH" wais); \
  63.     else (echo "Making data server"; cd gopherd; $(MAKE) $(MFLAGS) none) \
  64.     fi
  65.  
  66. # gopher is dependant on conf.h - (as are other things)
  67. gopher/gopher: object/libgopher.a conf.h gopher/*c gopher/*h
  68.     @echo "Making client"
  69.     (cd gopher; $(MAKE) $(MFLAGS))
  70.  
  71. object/libgopher.a: object/*c object/*h
  72.     @echo "Making Objects"
  73.     (cd object; $(MAKE) $(MFLAGS))
  74.  
  75. install:
  76.     (cd gopher; $(MAKE) $(MFLAGS) install);
  77.     (cd gopherd; $(MAKE) $(MFLAGS) install);
  78.     (cd doc; $(MAKE) $(MFLAGS) install)
  79.  
  80. clean:
  81.     (cd gopher;     $(MAKE) $(MFLAGS) clean)
  82.     (cd gopherd;     $(MAKE) $(MFLAGS) clean)
  83.     (cd object;     $(MAKE) $(MFLAGS) clean)
  84.     (cd doc;     $(MAKE) $(MFLAGS) clean)
  85.     -rm -f "examples/Sample Directory/wais-index/index."*
  86.  
  87. spotless: clean
  88.     -rm -f *~
  89.  
  90. tar: spotless
  91.     -rm  -f ir ui bin MANIFEST
  92.     touch MANIFEST
  93.     cp Makefile.config.dist Makefile.config
  94.     HERE=`basename $$PWD`; \
  95.     echo $$HERE ; \
  96.         cd .. ; \
  97.     find $$HERE -type f -print |grep -v '.o$$' |grep -v '~$$' |grep -v 'CVS' >$$HERE/MANIFEST ; \
  98.     /usr/gnu/bin/tar  -T $$HERE/MANIFEST -czvf $$HERE.tar.Z 
  99.  
  100.